package com.qf.condition;

import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Configuration;

@Configuration
public class TestConfig {

    @Bean
//    @ConditionOnClass("com.qf.xx")
    @ConditionalOnClass(name="com.qf.condition.B")
    public Stu getStu(){
        return new Stu();
    }
}
